package org.nutboat.core;

public abstract class GameManager extends GameSystem {
	private GameSystem system;

	public GameManager(GameSystem system) {
		this.system = system;
	}
	
	@Override
	public void startup() {
		super.startup();
		if (system != null) {
			system.startup();
		}
	}
	
	@Override
	public void shutdown() {
		if (system != null) {
			system.shutdown();
		}
		super.shutdown();
	}

	@Override
	public void update() {
		super.update();
		if (system != null) {
			system.update();
		}
	}
}